// 版权归 瞄你个汪 所有。使用本代码应遵守相关法律法规和Apache 2.0开源许可要求。
package top.geeke.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import top.geeke.entity.base.EntityBaseId;
import top.geeke.toolkit.supertable.annotation.SuperColumn;
import top.geeke.toolkit.supertable.annotation.SuperTable;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统访问日志表
 * </p>
 * @author 瞄你个汪
 * @since 2024-05-01 12:00:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_log_vis")
@SuperTable(value = "系统访问日志表", isSystem = true)
public class SysLogVis extends EntityBaseId implements Serializable {
    private static final long serialVersionUID = 1L;

    @SuperColumn(value = "模块名称", nullable = true)
    private String controllerName;

    @SuperColumn(value = "方法名称", nullable = true)
    private String actionName;

    @SuperColumn(value = "显示名称", nullable = true)
    private String displayTitle;

    @SuperColumn(value = "执行状态", nullable = true, length = 32)
    private String status;

    @SuperColumn(value = "IP地址", nullable = true)
    private String remoteIp;

    @SuperColumn(value = "IP归属地", nullable = true, length = 128)
    private String IpLocation;

    @SuperColumn(value = "经度", nullable = true)
    private double longitude;

    @SuperColumn(value = "维度", nullable = true)
    private double latitude;

    @SuperColumn(value = "浏览器", nullable = true, length = 1024)
    private String browser;

    @SuperColumn(value = "操作系统", nullable = true)
    private String os;

    @SuperColumn(value = "操作耗时", nullable = true)
    private Long elapsed;

    @SuperColumn(value = "日志时间", nullable = true)
    private LocalDateTime LogDateTime;

    @SuperColumn(value = "日志级别", nullable = true)
    private org.springframework.boot.logging.LogLevel LogLevel;

    @SuperColumn(value = "账号", nullable = true, length = 32)
    private String account;

    @SuperColumn(value = "姓名", nullable = true, length = 32)
    private String realName;

    @JsonIgnore
    @JsonIgnoreProperties
    @SuperColumn(value = "租户ID")
    @TableField(fill = FieldFill.INSERT)
    private Long tenantId;
}
